﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
using VM.Entity.EntityMap.User;

namespace VM.Entity.EntityDto.Invoice
{
    /// <summary>
    ///机动车销售统一发票才需要传
    /// </summary>
    [SugarTable("invoice_applyVehicleInfo")]
    public class invoiceApplyVehicleInfoDto
    {

        #region Model
        private int _id;
        private int? _parentid;
        private string _vehicletype;
        private string _brandmodel;
        private string _productorigin;
        private string _certificate;
        private string _importcernum;
        private string _insoddnum;
        private string _enginenum;
        private string _vehiclecode;
        private string _intactcernum;
        private string _tonnage;
        private string _maxcapacity;
        private string _idnumorgcode;
        private string _manufacturername;
        private string _taxofficename;
        private string _taxofficecode;
        /// <summary>
        /// 
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true, IsOnlyIgnoreInsert = true)]
        [JsonIgnore]
        public int id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 
        /// </summary>
        [JsonIgnore]
        public int? parentId
        {
            set { _parentid = value; }
            get { return _parentid; }
        }
        /// <summary>
        /// 车辆类型,同明细中商品名称，开具机动车发票时明细有且仅有一行，商品名称为车辆类型且不能为空
        /// </summary>
        public string vehicleType
        {
            set { _vehicletype = value; }
            get { return _vehicletype; }
        }
        /// <summary>
        /// 厂牌型号
        /// </summary>
        public string brandModel
        {
            set { _brandmodel = value; }
            get { return _brandmodel; }
        }
        /// <summary>
        /// 原产地
        /// </summary>
        public string productOrigin
        {
            set { _productorigin = value; }
            get { return _productorigin; }
        }
        /// <summary>
        /// 合格证号
        /// </summary>
        public string certificate
        {
            set { _certificate = value; }
            get { return _certificate; }
        }
        /// <summary>
        /// 进出口证明书号
        /// </summary>
        public string importCerNum
        {
            set { _importcernum = value; }
            get { return _importcernum; }
        }
        /// <summary>
        /// 商检单号
        /// </summary>
        public string insOddNum
        {
            set { _insoddnum = value; }
            get { return _insoddnum; }
        }
        /// <summary>
        /// 发动机号码
        /// </summary>
        public string engineNum
        {
            set { _enginenum = value; }
            get { return _enginenum; }
        }
        /// <summary>
        /// 车辆识别号码/车架号
        /// </summary>
        public string vehicleCode
        {
            set { _vehiclecode = value; }
            get { return _vehiclecode; }
        }
        /// <summary>
        /// 完税证明号码
        /// </summary>
        public string intactCerNum
        {
            set { _intactcernum = value; }
            get { return _intactcernum; }
        }
        /// <summary>
        /// 吨位
        /// </summary>
        public string tonnage
        {
            set { _tonnage = value; }
            get { return _tonnage; }
        }
        /// <summary>
        /// 限乘人数
        /// </summary>
        public string maxCapacity
        {
            set { _maxcapacity = value; }
            get { return _maxcapacity; }
        }
        /// <summary>
        /// 其他证件号码；该字段为空则为2021新版常规机动车发票，此时购方税号必填（个人在购方税号中填身份证号）；该字段有值，则为2021新版其他证件号码的机动车发票（可以录入汉字、大写字母、数字、全角括号等，此时购方税号需要为空；注：仅用于港澳台、国外等特殊身份/税号开机动车票时使用；国内个人身份证号码开具请勿传入该字段，需要传入到购方税号字段中）
        /// </summary>
        public string idNumOrgCode
        {
            set { _idnumorgcode = value; }
            get { return _idnumorgcode; }
        }
        /// <summary>
        /// 生产厂家（A9开票服务器类型可支持200）
        /// </summary>
        public string manufacturerName
        {
            set { _manufacturername = value; }
            get { return _manufacturername; }
        }
        /// <summary>
        /// 主管税务机关名称（A9开票服务器类型必填）
        /// </summary>
        public string taxOfficeName
        {
            set { _taxofficename = value; }
            get { return _taxofficename; }
        }
        /// <summary>
        /// 主管税务机关代码（A9开票服务器类型必填）
        /// </summary>
        public string taxOfficeCode
        {
            set { _taxofficecode = value; }
            get { return _taxofficecode; }
        }
        #endregion Model


    }
}
